package com.helloandroid.dialogs

import android.content.Context
import android.widget.TextView
import com.helloandroid.R
import com.helloandroid.base.BaseDialog

class StandDialog(ctx:Context,val tipMsg:String) : BaseDialog(ctx) {

    override fun getContentViewResId(): Int  = R.layout.dialog_stand

    override fun initView() {
        findBtn(R.id.btnClose).setOnClickListener {
            cancel()
        }
        findViewById<TextView>(R.id.tvDesc).text = tipMsg

        findBtn(R.id.btnYes).setOnClickListener { cancel() }
    }

    override fun initData() {
    }
}